import { createApp } from 'vue'
import router from './router'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import App from './App.vue'
import './assets/styles/style.scss'
import './assets/iconfont/iconfont.css'
if (!String.prototype.trim) {
    String.prototype.trim = (str) => {
        str = str || ''
        return str.replace(/^\s+|\s+$/g, '');
    }
}
const app = createApp(App)
app.use(router)
app.use(ElementPlus, {
    locale: zhCn,
})
app.mount('#app')
